<?php
//轮播图
   require ('db_conn.php');
   $sql="SELECT * FROM lb WHERE isshow =1 ORDER BY id LIMIT 0 , 5";
   $lbrs=$db->query($sql);
   $lbrows=$lbrs->fetch_all(MYSQLI_BOTH); 
   //新闻
    require ('db_conn.php');
   $sql="SELECT * FROM  `xw` LIMIT 0 , 30";
   $xwrs=$db->query($sql);
   $xwrows=$xwrs->fetch_all(MYSQLI_BOTH);
   
   //新闻1
    require ('db_conn.php');
   $sql = "SELECT * FROM `xw1` LIMIT 0, 30 ";
   $xw1rs=$db->query($sql);
   $xw1rows=$xw1rs->fetch_all(MYSQLI_BOTH);
      require 'index.php'; 
   $db->close();
   $lbrs->free();
   
   ?>